//
//  CompanyOfficeDetailView.m
//  HonlivApp
//
//  Created by admin on 2017/6/25.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import "CompanyOfficeDetailView.h"

@interface CompanyOfficeDetailView ()

@end

@implementation CompanyOfficeDetailView

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"公司办公";
    self.navigationController.navigationBar.translucent = YES;//default NO
    self.automaticallyAdjustsScrollViewInsets = NO; //default YES
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.webView.frame = CGRectMake(0, 20, kScreenW, kScreenH-20);
    
}
-(void)getRequestURL{
    self.user = User.currentUser;
    [self loadRequestURL:^(GetURL handler) {
        self.viewModel = [[DetailViewModel alloc] init];
        NSDictionary *gidDic = @{@"user_name":self.user.username,@"user_id":self.user.userId,@"SqlNo":@"9"};
        [self.viewModel getGidWithDic:gidDic Success:^(NSString *gid) {
            NSString *requestURL = [NSString stringWithFormat:@"%@Gid=%@",detail_url,gid];
            handler(requestURL);
        }];
    }];
}

@end
